<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="rs1" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="rs2" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%  /*
*@Description: 获取评标结果未被淘汰人数
*@Param: [request, response]
*@return: void
*@Author: Dusongsong
*@Date: 2021/1/13
*/
    String cglx = Util.null2String( request.getParameter( "cglx" ) );//采购类型
    String lc = Util.null2String( request.getParameter( "lc" ) );//项目名称
    JSONObject jsonData = new JSONObject();
    String sql = "select id from formtable_main_683 where zblx ='"+cglx+"' and lc='"+lc+"'";
    rs.executeQuery( sql );
    rs.next();
    String mainid = Util.null2String(rs.getString( 1 ));
    int count = 0;
    String sql1 = "select * from formtable_main_683_dt2 where mainid='"+mainid+"' and sftt='0'";
    rs1.executeQuery( sql1 );
    if(rs1.next()){
         count=rs1.getCounts();
    }

    String sql2 = "select * from formtable_main_683_dt4 where mainid='"+mainid+"' and sftt='0'";
    rs2.executeQuery( sql2 );
    if(rs2.next()){
        count=rs2.getCounts();
    }
    jsonData.put("count",count);
    out.print( jsonData.toJSONString());
    bb.writeLog( "getTbCounts_Ajax=" + jsonData.toJSONString() );
%>


